#include<stdio.h>

typedef struct ListNode {
	int val;
	struct ListNode* next;
}LTN;

int kthToLast(struct ListNode* head, int k) {
	LTN* slow = head;
	LTN* fast = head;
	while (k--)
	{
		fast = fast->next;
	}

	while (fast)
	{
		slow = slow->next;
		fast = fast->next;

	}
	return slow->val;
}